package com.lcj.OwnerMyBatis.sqlSession;

import com.lcj.OwnerMyBatis.pojo.Configuration;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author：liuchangjun
 * @Date：2021/10/27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DefaultSqlSessionFactory implements SqlSessionFactory{

    private Configuration configuration;

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession();
    }
}
